﻿@model Kooboo.CMS.Content.Models.TextContent
@{
    var schema = (Kooboo.CMS.Content.Models.Schema)ViewData["Schema"];
    var folder = (Kooboo.CMS.Content.Models.TextFolder)ViewData["Folder"];

    ViewBag.Title = "Add content".Localize() + ": " + folder.AsActual().FriendlyText;
    Layout = "~/Views/Shared/Blank.cshtml";
    
}
@section Panel{
    @if (!string.IsNullOrEmpty(ViewBag.Menu))
    {
        @Html.Partial(ViewData["Menu"].ToString(), Model)
    }
    else
    {
        <ul class="panel">
            <li>
                <a data-ajaxform="">
                    @Html.IconImage("save") @("Save".Localize())</a>
            </li>

            @foreach (var group in Kooboo.CMS.Sites.Extension.UI.TopToolbar.ToolbarButtons.GetToolbarButtons(ViewContext.RequestContext))
            {
                @Html.Partial("_ToolbarGroupButtons", group)
            }

            <li>
                <a href="@ViewContext.RequestContext.GetRequestValue("return")">
                    @Html.IconImage("cancel") @("Back".Localize())</a>
            </li>

        </ul>
    }
}
<div class="block common-form">
    <h1 class="title">@ViewBag.Title</h1>
    @Html.Partial(ViewData["Template"].ToString(), Model)
</div>
